package com.budwk.app.sqfwV2.dto.shawenTown;

import cn.hutool.core.date.DatePattern;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.budwk.app.sqfwDoc.codeGenerator.pdfGenerate.AbstractCustomerPdfCreateField;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 沙文镇vo
 * @since 2024-03-11
 *
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ShawenTownSafetyPdfDTO extends AbstractCustomerPdfCreateField  {

    @ApiModelProperty(description = "地址")
    private String address;

    @ApiModelProperty(description = "负责人|现场管理人员")
    private String operator;

    @ApiModelProperty(description = "联系电话|现场管理人员联系电话")
    private String operatorTelephone;

    @ApiModelProperty(description = "同行人")
    private String peers;

    @ApiModelProperty(description = "是否为小型经营场所")
    private ShawenTownSafetyProblemVo smallBusinessEstablishment;

    @ApiModelProperty(description = "是否有电动自行车")
    private ShawenTownSafetyProblemVo electricBicycle;

    @ApiModelProperty(description = "巡查时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime fillDate;

    @ApiModelProperty(description = "被巡查人签名")
    private String checkedUnitLeader;

    @ApiModelProperty(description = "入户安全巡查说明")
    private String patrolContents;

    @ApiModelProperty(description = "电动车隐患说明")
    private String electricBicycleRisk;

    @ApiModelProperty(description = "走访图片（巡查图片）")
    private String visitPictures;

    @ApiModelProperty(description = "上一条数据id")
    private String lastSummaryId;

    @ApiModelProperty(description = "隐患状态（【是否存在消防安全隐患】为“否”且【是否有电动车】为“是”且展开内容均为默认值时，传“否”，否则传“是）")
    private String issueStatus;

    @ApiModelProperty(description = "存在隐患的问题描述")
    private String existDangerStr;

    @ApiModelProperty(description = "存在隐患详细信息")
    private List<SWTownProblemVo> fireIssues;
}
